<template>
	<view class="" style="width: 100vw;height: 100vh">
		<view  style="min-height: 100vh">
			<hx-navbar title="持仓福利" :back="true" :fixed="false" :color="knavTitleColor" barPlaceholder="hidden"
				transparent="auto"></hx-navbar>
			<view class="container " style="">
				<view class="back">
					<view class="name_text">
						中福家医
					</view>
					<view class="image_box" style="">
						<view class="wenzhen_img">
							<image class="imagesize" src="../../../static/user/welfare/wenzhen.png" mode="widthFix">
							</image>
						</view>
						<view class="body_img" style="width: 630rpx;">
							<image class="body_img_1" src="../../../static/user/welfare/guahao.png" mode="">
							</image>
							<image class="body_img_2" src="../../../static/user/welfare/zhuanzhen.png" mode="">
							</image>
						</view>
						<view class="fuwu_img">
							<image class="imagesize" src="../../../static/user/welfare/fuwubao.png" mode="widthFix">
							</image>
						</view>
					</view>
				</view>
				<!-- 优惠券领取 -->
				<view class="back back2">
					<view class="post">
						<image src="../../../static/user/welfare/pinkbeij.png" class="poast_image" mode="widthFix">
						</image>
						<view class="post_text">
							<view class="post_text1" :style="{'color':selectColorSize}">
								平台优惠价领取
							</view>
							<view class="post_text2">
								*点击查看领取条件
							</view>
						</view>
					</view>
					<view class="" style="height: 100rpx;"> </view>
					<view class="">
						<view class="image_box" style="">
							<view class="wenzhen_img" @tap="allDiscounts">
								<image class="imagesize" src="../../../static/user/welfare/youhuiquan1.png"
									mode="widthFix">
								</image>
							</view>
							<view class="wenzhen_img" @tap="allDiscounts">
								<image class="imagesize" src="../../../static/user/welfare/youhuiquan2.png"
									mode="widthFix">
								</image>
							</view>
							<view class="body_img">
								<image @tap="allDiscounts" class="body_img_2"
									src="../../../static/user/welfare/youhuiquan3.png" mode="widthFix">
								</image>
								<image @tap="allDiscounts" class="body_img_2"
									src="../../../static/user/welfare/youhuiquan4.png" mode="widthFix">
								</image>
							</view>
							<view class="body_img">
								<image @tap="allDiscounts" class="body_img_2"
									src="../../../static/user/welfare/youhuiquan5.png" mode="widthFix">
								</image>
								<image @tap="allDiscounts" class="body_img_2"
									src="../../../static/user/welfare/youhuiquan5.png" mode="widthFix">
								</image>
							</view>
						</view>
					</view>
					<view class="size_back" @tap="userWelfare">
						查看我的卷包 <image src="../../../static/user/jiantou_z.png" class="image_size" mode=""></image>

					</view>
				</view>
				<view class="" style="height: 100rpx;"> </view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				selectColorSize: this.$store.state.selectColorSize, //选中字体颜色
			}
		},
		onPullDownRefresh() {
			setTimeout(function() {
				uni.stopPullDownRefresh()
			}, 2000)
		},
		methods: {
			allDiscounts() {
				console.log("aaa")
				uni.navigateTo({
					url: '/pages/user/all_discounts/all_discounts'
				})
			},
			userWelfare() {
				uni.navigateTo({
					url: '/pages/user/coupon_package/coupon_package'
				})

			}

		}
	}
</script>

<style scoped lang="scss">
	* {
		margin: 0;
		padding: 0;
	}

	.back {
		padding: 10rpx 0 30rpx;
		width: 690rpx;
		background-size: 100% 100%;
		background-image: url(../../../static/user/welfare/back.png);
		margin: 20rpx auto;

		.name_text {
			color: #007E66;
			text-align: center;
			font-size: 33rpx;
			font-weight: 600;
			margin: 10rpx auto;
		}

		.image_box {
			width: 690rpx;
		}

		.wenzhen_img {
			margin: 16rpx auto;
			text-align: center;



		}

		//大图片尺寸
		.imagesize {
			width: 630rpx;
		}

		.body_img {
			display: flex;
			justify-content: space-between;
			margin: 15rpx auto;
	   
			  width: 660rpx;
			.body_img_1 {
				width: 260rpx;
				height: 330rpx;
			}

			.body_img_2 {
				width: 300rpx;
	            height: 330rpx;		
			}

		}

		.fuwu_img {
			width: 690rpx;
			margin: 20rpx auto;
			text-align: center;

		}
	}

	.back2 {
		width: 690rpx;
		margin-bottom: 20rpx;
		background-size: 100% 100%;
		position: relative;

		.post {
			position: absolute;
			top: 0rpx;
			left: 25%;

			.poast_image {
				z-index: 0;
				width: 350rpx;
			}

			.post_text {
				z-index: 3;
				color: lawngreen;
				position: absolute;
				top: 10rpx;
				left: 17%;

				.post_text1 {
					font-size: 33rpx;
					font-weight: 600;
				}

				.post_text2 {
					text-align: center;
					font-size: 12rpx;
					font-weight: 500;
					color: #505050;
				}

			}
		}

		.size_back {
			margin: 13rpx auto;
			text-align: center;
			color: #864CFF;
			font-size: 30rpx;
			display: flex;
			justify-content: center;

			align-items: stretch;

			.image_size {
				width: 40rpx;
				height: 45rpx;
			}
		}
	}
</style>